|
ARD2
1.00 for Rev B. Hardware
Airbag Reference Demonstrator using MPC5604P
|
ADC drivers for MPC5604P. More...
Functions | |
| uint8_t | u8fnADCConvert (const uint8_t cu8ADCInstance, const uint8_t cu8ADCCh, uint16_t *pu16Result) |
| Launches ADC to perform a conversion for a given channel. | |
| uint8_t | u8fnADCConfig (uint8_t u8Instance, ADCConfig_t *ptADCConfig) |
| Configures a particular instance for operation according to passed argument. | |
| uint8_t | u8fnADCChannelConfig (const ADCChConfig_t *tADCChConfig, const uint16_t *pu16Results) |
| Configures a particular channel for a programmed conversion. | |
| uint8_t | u8fnADCReadChannel (uint8_t u8Instance, uint8_t u8Channel, uint16_t *pu16ADCResult) |
| Performs exactly what it names suggests. | |
| uint8_t | u8fnADCStatus (uint8_t u8Instance) |
| Returns the HW status of an instance. | |
| uint8_t | u8fnADCNormalConversionEnable (uint8_t u8Instance, uint8_t u8Enable) |
| Starts a normal (scheduled) conversion. | |
| void | vfnADC0EoCIsr (void) |
| Channels an end of conversion isr from ADC0 into the general ADC end of conversion Isr with its proper argument. | |
| void | vfnADC1EoCIsr (void) |
| Channels an end of conversion isr from ADC1 into the general ADC end of conversion Isr with its proper argument. | |
| void | vfnADC0ErrIsr (void) |
| Channels a error isr from ADC0 into the general ADC error Isr with its proper argument. | |
| void | vfnADC1ErrIsr (void) |
| Channels a error isr from ADC1 into the general ADC error Isr with its proper argument. | |
| void | vfnADC0WatchDogIsr (void) |
| Channels a watchdog isr from ADC0 into the general ADC Watchdog Isr with its proper argument. | |
| void | vfnADC1WatchDogIsr (void) |
| Channels a watchdog isr from ADC1 into the general ADC Watchdog Isr with its proper argument. | |
Variables | |
| const ADC_t | catADCInstanceList [] |
| uint16_t * | gpu16ADCResults [(ADC_NO_MODULES *(ADC_CH_MAX+1u))] |
| uint16_t | gau16ADCChToRead [ADC_NO_MODULES] |
ADC drivers for MPC5604P.
Copyright (c) 2011 Freescale Semiconductor Freescale Confidential Proprietary
History:
| uint8_t u8fnADCChannelConfig | ( | const ADCChConfig_t * | tADCChConfig, |
| const uint16_t * | pu16Results | ||
| ) |
Configures a particular channel for a programmed conversion.
| tADCChConfig,: | pointer to tADCChConfig with the correct instance and channel to configure |
| pu16Results,: | Where to place the result once it's ready. |
| uint8_t u8fnADCConfig | ( | uint8_t | u8Instance, |
| ADCConfig_t * | ptADCConfig | ||
| ) |
Configures a particular instance for operation according to passed argument.
| u8Instance,: | ADC instance to associate this fn to. |
| ptADCConfig,: | Configuration settings as described by ADCConfig_t |
| uint8_t u8fnADCConvert | ( | const uint8_t | cu8ADCInstance, |
| const uint8_t | cu8ADCCh, | ||
| uint16_t * | pu16Result | ||
| ) |
Launches ADC to perform a conversion for a given channel.
| cu8ADCInstance,: | ADC instance to associate this fn to. |
| cu8ADCCh,: | ADC channel for that particular instance. |
| pu16Result,: | 10-bit result of the conversion. |
| uint8_t u8fnADCNormalConversionEnable | ( | uint8_t | u8Instance, |
| uint8_t | u8Enable | ||
| ) |
Starts a normal (scheduled) conversion.
| u8Instance | Which ADC instance is going to be read. |
| u8Enable | zero for disable, non-zero for enable. |
| uint8_t u8fnADCReadChannel | ( | uint8_t | u8Instance, |
| uint8_t | u8Channel, | ||
| uint16_t * | pu16ADCResult | ||
| ) |
Performs exactly what it names suggests.
| u8Instance,: | Which ADC instance is going to be read. |
| u8Channel,: | Which channel is going to be read. |
| pu16ADCResult | Where the result will be placed. |
| uint8_t u8fnADCStatus | ( | uint8_t | u8Instance | ) |
Returns the HW status of an instance.
| u8Instance,: | Which ADC instance is going to be read. |
| void vfnADC0EoCIsr | ( | void | ) |
Channels an end of conversion isr from ADC0 into the general ADC end of conversion Isr with its proper argument.
| None |
| void vfnADC0ErrIsr | ( | void | ) |
Channels a error isr from ADC0 into the general ADC error Isr with its proper argument.
| u8Instance | ADC instance. |
| void vfnADC0WatchDogIsr | ( | void | ) |
Channels a watchdog isr from ADC0 into the general ADC Watchdog Isr with its proper argument.
| None |
| void vfnADC1EoCIsr | ( | void | ) |
Channels an end of conversion isr from ADC1 into the general ADC end of conversion Isr with its proper argument.
| None |
| void vfnADC1ErrIsr | ( | void | ) |
Channels a error isr from ADC1 into the general ADC error Isr with its proper argument.
| None |
| void vfnADC1WatchDogIsr | ( | void | ) |
Channels a watchdog isr from ADC1 into the general ADC Watchdog Isr with its proper argument.
| None |
| const ADC_t catADCInstanceList[] |
{
&ADC_0, &ADC_1
}
List of pointers to our ADC instances
| uint16_t gau16ADCChToRead[ADC_NO_MODULES] |
Mask of channels to be read by module
| uint16_t* gpu16ADCResults[(ADC_NO_MODULES *(ADC_CH_MAX+1u))] |
Container for read values (not in auto mode)